import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.ObjectInputStream;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;

/**
 * Created by Fly on 2017/6/27.
 */
public class Test {

    public int count;

    public static void main(String[] args) throws IOException {
        Test test = new Test(99);
        System.out.println(test.count);
        String[] array = new String[]{"1","2","3","4"};
        listAll(Arrays.asList(array),"");
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));

        String buffer = bufferedReader.readLine();

        try {
            Integer value = Integer.valueOf(buffer);
            System.out.println("平方:" + value * value);
            System.out.println("立方:" + value * value * value);
        }catch (NumberFormatException e){

        }
    }

    private static void listAll(List candiate,String prefix){
        System.out.println(prefix);

        for (int i=0; i < candiate.size(); i++){
            List temp = new LinkedList(candiate);
            listAll(temp,prefix + temp.remove(i));
        }
    }
    public Test(int count) {
        this.count = count;
    }
}
